package com.song.studylineserver.service;

import com.song.studylineserver.domain.Menu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.song.studylineserver.domain.vo.RouterVo;

import java.util.List;

/**
* @author Swtao
* @description 针对表【sl_menu(菜单权限表)】的数据库操作Service
* @createDate 2022-01-26 00:24:37
*/
public interface MenuService extends IService<Menu> {
   List<String> selectMenuPermsByUserId(Long userId);

   /**
    * 根据用户ID查询菜单树信息
    *
    * @param userId 用户ID
    * @return 菜单列表
    */
   List<Menu> selectMenuTreeByUserId(Long userId);

   List<RouterVo> buildMenus(List<Menu> menus);

   List<Menu> selectMenuList(Menu menu, Long userId);

   List<Menu> selectMenuList(Long userId);
}
